export class Pagination {
  page: number = 1;
  limit: number = 10;
  total: number = 0;
  userId?: undefined;
  flog: Boolean = false;
  targetAdminId?: undefined;
}

// 优惠卷管理
export class Pagesourcecode {
  page: number = 1;
  limit: number = 10;
  total: number = 0;
  title: string = "";
  type: number | string = "";
  status: number | string = "";
}

// 广告管理
export class Pageadvertisement {
  type: string | null = "";
  page: number = 1;
  limit: number = 10;
  status?: number | string;
  total: number = 0;
}

// 团购管理
export class PageGrouppurchase {
  id: number | undefined | null;
  spuName: string;
  status: number | undefined | null;
  page: number = 1;
  limit: number = 10;
  total: number = 0;
}

//团购管理
export class Typepurchase {
  price: number;
  barCode: string;
  spuId: number;
  stock: number;
  skuGroupShopPrice?: string | number | undefined;
  id: number;
}

// 团购管理的表格数据
export class Typetabledata {
  id: number;
  title: string;
  img: string;
  status: number;
  automaticRefund: number;
  gmtStart: number;
  gmtEnd: number;
  spuId: number;
  buyerNum: number;
  minNum: number;
  groupShopSkuDTOList: [];
}

// 团购的商品信息
export class TypeDetail {
  barCode: string;
  spuId: number;
  stock: number;
  title: string;
  price: number;
  skuGroupShopPrice?: number | string;
  id?: number;
}

//商品列表
export class TypeProduct {
  activityId: number;
  activityType: number;
  categoryId: number;
  description: string;
  freightTemplateId: number;
  gmtActivityEnd: number;
  gmtActivityStart: number;
  gmtCreate: number;
  gmtUpdate: number;
  id?: string | number;
  img: string;
  originalPrice: number;
  price: number;
  skuList?: number | string;
  status: number;
  title: string;
  unit: string;
  vipPrice: number;
}

export class TypeFair {
  page: number = 1;
  limit: number = 10;
  categoryId: number | string;
  title: string;
  barcode: string;
  status: number | string | null;
  total: number = 0;
}

export class Typecategory {
  fullName: string;
  gmtCreate: number;
  gmtUpdate: number;
  id: number;
  level: number;
  parentId: number;
  title: string;
}

export class Typefreight {
  title: string;
  spuLocation: string;
  id: number;
  gmtUpdate: number;
  gmtCreate: number;
  deliveryDeadline: number;
  defaultFreePrice: number;
  defaultFirstWeight: number;
  defaultFirstPrice: number;
  defaultContinueWeight: number;
  defaultContinuePrice: number;
}

export class TypeCategoryTree {
  fullName: string;
  gmtCreate: number;
  gmtUpdate: number;
  id: number;
  level: number;
  parentId: number;
  title: string;
}

export class Typeattribute {
  title: string; //标题
  price: number; //原价格
  originalPrice: number; //现在价格
  vipPrice: number; //vip价格
  Inventory: number; //库存
  freightTemplateId: string; // 邮费类目
  status: number; // 1在售 0未售
  imgList: []; //图片数组
  img: string; //查看图片
  unit: string; //商品单位
  categoryId: string; //所属类目
  description: string; //描述
  detail: string; //富文本
  specificationList: []; //规格维度
  skuList: []; //sku表格
  attribute: string | number;
  inputSkuTagVisible: any;
  inputSkuTagValue: string | number;
}

//规格维度接口
export interface TypeSpeciFication {
  title: string; //规格名称
  gmtCreate: number; //创建时间
  gmtUpdate: number; //结束时间
  values: [string]; //tag标签内容
  inputVisible: boolean; //控制输入框显示隐藏
  inputValue: string; //tag输入框的值
}

export interface TypeLabel {
  prop: string;
  label: string;
}

export interface TypeSkuTable {
  id: number;
  price: number;
  vipPrice: number;
  originalPrice: number;
  stock: number;
  weight: number;
  barCode: string;
  img: string;
}
//创建商品类
export class ClassCreateProduct {
  originalPrice: number = 0; //原价
  price: number = 0; //现价
  vipPrice: number = 0; //vip价
  stock: number = 0; //库存
  status: number = 1; // 是否在售
  title: string = ""; //商品名称
  img: string = ""; //商品图片
  imgList: string[] = []; // 商品图片数组
  unit: string; //单位
  detail: string = ""; //富文本
  description: string = ""; //商品简介
  categoryId: number = 0; //类目id
  attributeList: any[] = []; //商品参数
  specificationList: any[] = []; //商品规格
  skuList: any[] = []; //sku商品
  freightTemplateId: number = 0; //邮费模板id
  Inventory:number = 0
}

